package top.kpromise.user.crash;

import io.sentry.Sentry;

public class CrashHandler {

    private static boolean inited = false;

    public static void initCrashHandler() {
        Sentry.init();
        inited = true;
    }

    public static void reportException(Exception e) {
        if (inited) {
            Sentry.capture(e);
        }
    }
}
